﻿@{
    Layout = null;
}
<section class="hero-unit">
    <div style="position:relative;">
        @*<img src="~/Content/Images/hero-unit-1.jpg" />*@
    </div>
    <section class="hero-unit__content">
        <h1> 找好画师，完成需求，就这么简单！ </h1>
        <div>
            <p>仅需3分钟发布需求，即可收到数十位画师应征。</p>
            <p>30000余位精选画师在此等待，只为创作属于您的精美画作。</p>
        </div>
        <div class="hero-unit__action">
            <button class="el-button el-button--primary el-button--large is-round" onclick="goRegister('employer')">我是需求方</button>
            <button class="el-button el-button--primary el-button--large is-round" onclick="goRegister('painter')">我是画师</button>
        </div>
    </section>
    <div class="hero-unit__next-section">
        <i class="el-icon-arrow-down" style="margin-bottom:-15px;"></i>
        <i class="el-icon-arrow-down"></i>
    </div>
    <img src="" class="hero-unit__mask">
</section>

<script>
    function goRegister(type) {
       window.location.href = "@Url.Action("Index", "Register")" + '?from='+type;
    }
</script>